﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

namespace NinjaToolbox.SubComponentModule.Example
{
    [TargetModel(typeof(SE2_Idle_Model))]
    public class SE2_Idle_ModelEditor : SubComponentModelEditorBase
    {
        protected override float GetInspectorGUIHeight()
        {
            return 25;
        }

        protected override void OnInspectorGUI(Rect rect)
        {
            var model = mTarget as SE2_Idle_Model;

            GUI.Label(new Rect(rect.x, rect.y, 100, 20), "Idle Anim Key");
            model.idleAnimKey = GUI.TextField(new Rect(rect.x + 100, rect.y, rect.width - 100, 20), model.idleAnimKey);
        }
    }
}
